<?php
namespace Core\Helper;

use HTMLPurifier;
use HTMLPurifier_Config;

require_once LIB_PATH . '/HtmlPurify/HTMLPurifier.auto.php';
class HtmlPurifierHelper
{

    public static function purifyDefault($content){
        $config = HTMLPurifier_Config::createDefault();
        $purifier = new HTMLPurifier($config);
        return  $purifier->purify($content);
    }

}







